home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
WASTE Object Handlers 1.2.6.sit
/
WASTE Object Handlers 1.2.6
/
Handler Headers
/
WE_snd_Handler.h
< prev
Wrap
Text File
|
1997-09-08
|
1KB
|
45 lines
// Sound Object Handler for the WASTE Text Engine
// by Michael F. Kamprath, kamprath@kagi.com
// maintenance by John C. Daub, hsoi@eden.com
#ifndef __SOUND__
#include <Sound.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
void InitSoundObjectHandler( void );
pascal OSErr HandleNewSound(Point *defaultObjectSize,WEObjectReference objectRef);
pascal OSErr HandleDisposeSound( WEObjectReference objectRef );
pascal OSErr HandleDrawSound(Rect *destRect, WEObjectReference objectRef );
pascal Boolean HandleClickSound( Point hitPt,
short modifiers,
long clickTime,
WEObjectReference objectRef);
// SndChannelPtr CreateNewSoundChannel( void );
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
const short kSoundIconID = 550;
const ResType kTypeSound = 'snd ';
#else
#define kSoundIconID 550
#define kTypeSound 'snd '
#endif
//
// If you want the sound object handler's sound channel to
// be create on initialization, define CREATE_CHANNEL_AT_INIT
// to the value 1. Define CREATE_CHANNEL_AT_INIT to the value
// 0 if you want the channel to be created when first needed.
//
#define CREATE_CHANNEL_AT_INIT 1